package com.huluobo.lib_base.net

/**
 *  Created by LC on 2025/9/13.
 *  存放所有常量
 *  URL开头都是地址
 *  PARAM 开头都是参数
 */
object Const {
    const val BASE_URL = "http://10.161.9.80:7012"
    const val PARAM_TOKEN = "token"
    const val MEDIA_TYPE = "application/json;charset=utf-8"
    const val KEY_VIDEO_BEAN = "videoBean"
    const val CHAT_ROOM_ID = "292670979244035"
    const val KEY_USER = "user"
    const val KEY_PERMISSION = "permission"
    const val KEY_AUTHORIZED = "authorized"
    const val KEY_ALWAYS_DENIED = "always_denied"

    //登录
    const val URL_LOGIN = "/user/loginjson"
    const val PARAM_USERNAME = "username"
    const val PARAM_PASSWORD = "password"

    //注册
    const val URL_REGISTER = "/user/register"
    const val PARAM_RE_PASSWORD = "repassword"

    //获取视频列表
    const val URL_GET_VIDEOS = "/video/findVideos"
    const val PARAM_CURRENT_PAGE = "currentPage"
    const val PARAM_PAGE_SIZE = "pageSize"

    //点赞
    const val URL_LIKE_VIDEO = "/fav/love"
    const val URL_UN_LIKE_VIDEO = "/fav/nolove"
    const val PARAM_VIDEO_ID = "videoId"

    //关注
    const val URL_FOLLOW = "/guanzhu/guanzhu"
    const val PARAM_AUTH_NAME = "authname"
    const val URL_UN_FOLLOW = "/guanzhu/noguanzhu"

    //评论
    const val URL_GET_COMMENT = "/comment/getCommentByVideoId"
    const val PARAM_MSG = "msg"
    const val URL_SEND_COMMENT = "/comment/comment"
    const val PARAM_ROOT_ID = "rootId"
    const val URL_GET_CHILD_COMMENT = "/comment/getChildCommentByVideoId"

    //礼物
    const val URL_GET_GIFT = "/gift/json"

    //商品列表
    const val URL_GET_GOODS = "/goods/info?category_id=0"
    const val PARAM_GOODS_ID = "goods_id"
    const val URL_GOODS_DETAIL = "/goods/detail"

    //添加购物车
    const val PARAM_COUNT = "count"
    const val URL_ADD_CART = "/goods/addCar"

    //获取购物车数据
    const val URL_GET_CART = "/goods/selectCar"

    //删除购物车
    const val PARAM_IDS = "ids"
    const val URL_DELETE_CART = "/goods/deleteCar"

    //首页banner
    const val URL_HOME_BANNER = "/banner/json"

    //搜索
    const val PARAM_KEYWORD = "keywords"
    const val URL_SEARCH = "/video/findVideoByName"

    //获取点赞视频
    const val URL_GET_LIKE_VIDEOS = "/fav/loveVideos"

    //上传头像
    const val URL_UPLOAD_ICON = "/user/updateIcon"
    const val PARAM_FILE = "file"

}